﻿namespace GetTogether.RichText.Support
{

	
	public class RtfVisualVisitorBase : IRtfVisualVisitor
	{
        private bool _IsSubHtml;

        public bool IsSubHtml
        {
            get { return _IsSubHtml; }
            set { _IsSubHtml = value; }
        }

        private bool _IsIgnoreFontFamily;

        public bool IsIgnoreFontFamily
        {
            get { return _IsIgnoreFontFamily; }
            set { _IsIgnoreFontFamily = value; }
        }
		
		public void VisitText( IRtfVisualText visualText )
		{
			if ( visualText != null )
			{
				DoVisitText( visualText );
			}
		} // VisitText

		
		protected virtual void DoVisitText( IRtfVisualText visualText )
		{
		} // DoVisitText

		
		public void VisitBreak( IRtfVisualBreak visualBreak )
		{
			if ( visualBreak != null )
			{
				DoVisitBreak( visualBreak );
			}
		} // VisitBreak

		
		protected virtual void DoVisitBreak( IRtfVisualBreak visualBreak )
		{
		} // DoVisitBreak

		
		public void VisitSpecial( IRtfVisualSpecialChar visualSpecialChar )
		{
			if ( visualSpecialChar != null )
			{
				DoVisitSpecial( visualSpecialChar );
			}
		} // VisitSpecial

		
		protected virtual void DoVisitSpecial( IRtfVisualSpecialChar visualSpecialChar )
		{
		} // DoVisitSpecial

		
		public void VisitImage( IRtfVisualImage visualImage )
		{
			if ( visualImage != null )
			{
				DoVisitImage( visualImage );
			}
		} // VisitImage

		
		protected virtual void DoVisitImage( IRtfVisualImage visualImage )
		{
		} // DoVisitImage

	} // class RtfVisualVisitorBase

} 

